import request from '../../request/request_axios.js'


/**
 * @returns {Promise}
 * 获取验证码图片
 */
export const captchaAPI = () => {
  return request({
    url: '/code/captcha',
    method: 'get',
  });
};


/**
 * 获取邮箱验证码
 * @param email
 * @returns {*}
 */
export const emailCodeAPI = (email) => {
  return request({
    url: '/code/email',
    method: 'get',
    params:{
      toEmail: email
    }
  });
};

